﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000C3B RID: 3131
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MusicRhythmGroup : IMessage<MusicRhythmGroup>, IMessage, IEquatable<MusicRhythmGroup>, IDeepCloneable<MusicRhythmGroup>, IBufferMessage
	{
		// Token: 0x17002779 RID: 10105
		// (get) Token: 0x06008C00 RID: 35840 RVA: 0x00174831 File Offset: 0x00172A31
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MusicRhythmGroup> Parser
		{
			get
			{
				return MusicRhythmGroup._parser;
			}
		}

		// Token: 0x1700277A RID: 10106
		// (get) Token: 0x06008C01 RID: 35841 RVA: 0x00174838 File Offset: 0x00172A38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MusicRhythmGroupReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700277B RID: 10107
		// (get) Token: 0x06008C02 RID: 35842 RVA: 0x0017484A File Offset: 0x00172A4A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MusicRhythmGroup.Descriptor;
			}
		}

		// Token: 0x06008C03 RID: 35843 RVA: 0x00174851 File Offset: 0x00172A51
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MusicRhythmGroup()
		{
		}

		// Token: 0x06008C04 RID: 35844 RVA: 0x00174870 File Offset: 0x00172A70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MusicRhythmGroup(MusicRhythmGroup other) : this()
		{
			this.hNNDNEPPCJB_ = other.hNNDNEPPCJB_.Clone();
			this.cMCOLNPPBGG_ = other.cMCOLNPPBGG_.Clone();
			this.musicGroupId_ = other.musicGroupId_;
			this.musicGroupPhase_ = other.musicGroupPhase_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06008C05 RID: 35845 RVA: 0x001748CE File Offset: 0x00172ACE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MusicRhythmGroup Clone()
		{
			return new MusicRhythmGroup(this);
		}

		// Token: 0x1700277C RID: 10108
		// (get) Token: 0x06008C06 RID: 35846 RVA: 0x001748D6 File Offset: 0x00172AD6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> HNNDNEPPCJB
		{
			get
			{
				return this.hNNDNEPPCJB_;
			}
		}

		// Token: 0x1700277D RID: 10109
		// (get) Token: 0x06008C07 RID: 35847 RVA: 0x001748DE File Offset: 0x00172ADE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> CMCOLNPPBGG
		{
			get
			{
				return this.cMCOLNPPBGG_;
			}
		}

		// Token: 0x1700277E RID: 10110
		// (get) Token: 0x06008C08 RID: 35848 RVA: 0x001748E6 File Offset: 0x00172AE6
		// (set) Token: 0x06008C09 RID: 35849 RVA: 0x001748EE File Offset: 0x00172AEE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MusicGroupId
		{
			get
			{
				return this.musicGroupId_;
			}
			set
			{
				this.musicGroupId_ = value;
			}
		}

		// Token: 0x1700277F RID: 10111
		// (get) Token: 0x06008C0A RID: 35850 RVA: 0x001748F7 File Offset: 0x00172AF7
		// (set) Token: 0x06008C0B RID: 35851 RVA: 0x001748FF File Offset: 0x00172AFF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MusicGroupPhase
		{
			get
			{
				return this.musicGroupPhase_;
			}
			set
			{
				this.musicGroupPhase_ = value;
			}
		}

		// Token: 0x06008C0C RID: 35852 RVA: 0x00174908 File Offset: 0x00172B08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MusicRhythmGroup);
		}

		// Token: 0x06008C0D RID: 35853 RVA: 0x00174918 File Offset: 0x00172B18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MusicRhythmGroup other)
		{
			return other != null && (other == this || (this.hNNDNEPPCJB_.Equals(other.hNNDNEPPCJB_) && this.cMCOLNPPBGG_.Equals(other.cMCOLNPPBGG_) && this.MusicGroupId == other.MusicGroupId && this.MusicGroupPhase == other.MusicGroupPhase && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06008C0E RID: 35854 RVA: 0x0017498C File Offset: 0x00172B8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.hNNDNEPPCJB_.GetHashCode();
			num ^= this.cMCOLNPPBGG_.GetHashCode();
			if (this.MusicGroupId != 0U)
			{
				num ^= this.MusicGroupId.GetHashCode();
			}
			if (this.MusicGroupPhase != 0U)
			{
				num ^= this.MusicGroupPhase.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008C0F RID: 35855 RVA: 0x00174A00 File Offset: 0x00172C00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008C10 RID: 35856 RVA: 0x00174A08 File Offset: 0x00172C08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06008C11 RID: 35857 RVA: 0x00174A14 File Offset: 0x00172C14
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.hNNDNEPPCJB_.WriteTo(ref output, MusicRhythmGroup._repeated_hNNDNEPPCJB_codec);
			this.cMCOLNPPBGG_.WriteTo(ref output, MusicRhythmGroup._repeated_cMCOLNPPBGG_codec);
			if (this.MusicGroupId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.MusicGroupId);
			}
			if (this.MusicGroupPhase != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.MusicGroupPhase);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06008C12 RID: 35858 RVA: 0x00174A90 File Offset: 0x00172C90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.hNNDNEPPCJB_.CalculateSize(MusicRhythmGroup._repeated_hNNDNEPPCJB_codec);
			num += this.cMCOLNPPBGG_.CalculateSize(MusicRhythmGroup._repeated_cMCOLNPPBGG_codec);
			if (this.MusicGroupId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MusicGroupId);
			}
			if (this.MusicGroupPhase != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MusicGroupPhase);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06008C13 RID: 35859 RVA: 0x00174B0C File Offset: 0x00172D0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MusicRhythmGroup other)
		{
			if (other == null)
			{
				return;
			}
			this.hNNDNEPPCJB_.Add(other.hNNDNEPPCJB_);
			this.cMCOLNPPBGG_.Add(other.cMCOLNPPBGG_);
			if (other.MusicGroupId != 0U)
			{
				this.MusicGroupId = other.MusicGroupId;
			}
			if (other.MusicGroupPhase != 0U)
			{
				this.MusicGroupPhase = other.MusicGroupPhase;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06008C14 RID: 35860 RVA: 0x00174B7E File Offset: 0x00172D7E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06008C15 RID: 35861 RVA: 0x00174B88 File Offset: 0x00172D88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 72U)
				{
					if (num == 16U || num == 18U)
					{
						this.hNNDNEPPCJB_.AddEntriesFrom(ref input, MusicRhythmGroup._repeated_hNNDNEPPCJB_codec);
						continue;
					}
					if (num == 72U)
					{
						goto IL_4E;
					}
				}
				else
				{
					if (num == 74U)
					{
						goto IL_4E;
					}
					if (num == 112U)
					{
						this.MusicGroupId = input.ReadUInt32();
						continue;
					}
					if (num == 120U)
					{
						this.MusicGroupPhase = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				continue;
				IL_4E:
				this.cMCOLNPPBGG_.AddEntriesFrom(ref input, MusicRhythmGroup._repeated_cMCOLNPPBGG_codec);
			}
		}

		// Token: 0x04003585 RID: 13701
		private static readonly MessageParser<MusicRhythmGroup> _parser = new MessageParser<MusicRhythmGroup>(() => new MusicRhythmGroup());

		// Token: 0x04003586 RID: 13702
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003587 RID: 13703
		public const int HNNDNEPPCJBFieldNumber = 2;

		// Token: 0x04003588 RID: 13704
		private static readonly FieldCodec<uint> _repeated_hNNDNEPPCJB_codec = FieldCodec.ForUInt32(18U);

		// Token: 0x04003589 RID: 13705
		private readonly RepeatedField<uint> hNNDNEPPCJB_ = new RepeatedField<uint>();

		// Token: 0x0400358A RID: 13706
		public const int CMCOLNPPBGGFieldNumber = 9;

		// Token: 0x0400358B RID: 13707
		private static readonly FieldCodec<uint> _repeated_cMCOLNPPBGG_codec = FieldCodec.ForUInt32(74U);

		// Token: 0x0400358C RID: 13708
		private readonly RepeatedField<uint> cMCOLNPPBGG_ = new RepeatedField<uint>();

		// Token: 0x0400358D RID: 13709
		public const int MusicGroupIdFieldNumber = 14;

		// Token: 0x0400358E RID: 13710
		private uint musicGroupId_;

		// Token: 0x0400358F RID: 13711
		public const int MusicGroupPhaseFieldNumber = 15;

		// Token: 0x04003590 RID: 13712
		private uint musicGroupPhase_;
	}
}
